<template>
  <!-- <el-card> -->
  <!-- <template slot="header"> -->
  <el-form v-if="device.code" inline>
    <el-form-item :label="$t('Formaldehyde')">{{ device.message.CH2O }}μg/m³</el-form-item>
    <el-form-item label="TVOC">{{ device.message.TVOC }}μg/m³</el-form-item>
    <el-form-item label="PM2.5">{{ device.message.PM2d5 }}μg/m³</el-form-item>
    <el-form-item label="PM10">{{ device.message.PM10d }}μg/m³</el-form-item>
    <el-form-item label="CO2">{{ device.message.CO2 }}ppm</el-form-item>
    <el-form-item :label="$t('Temperature')">{{ device.message.Temp }}℃</el-form-item>
    <el-form-item :label="$t('Humidity')">{{ device.message.Humi }}%</el-form-item>
    <el-form-item :label="$t('sensor.AirIndex')">{{ device.message.Smell }}</el-form-item>
    <!-- <el-form-item label="评分">{{ device.Smell }}</el-form-item> -->
  </el-form>
  <!-- <el-alert v-else title="请等待模块响应" :closable="false" type="info"></el-alert> -->
  <!-- </template> -->
  <!-- </el-card> -->
</template>
<script>
  import Common from './common'
  export default {
    name: "EnvironmentSensor",
    mixins: [Common]
  }

</script>
